package com.iknow.xmpp.smack.caps;

import org.jivesoftware.smack.packet.PacketExtension;
import org.jivesoftware.smack.provider.PacketExtensionProvider;
import org.xmlpull.v1.XmlPullParser;

public class CapsProvider
  implements PacketExtensionProvider
{
  public PacketExtension parseExtension(XmlPullParser paramXmlPullParser)
  {
    String str1 = paramXmlPullParser.getAttributeValue("", "ver");
    String str2 = paramXmlPullParser.getAttributeValue("", "hash");
    String str3 = paramXmlPullParser.getAttributeValue("", "node");
    String str4 = paramXmlPullParser.getAttributeValue("", "ext");
    CapsExtension localCapsExtension = new CapsExtension(str2, str3, str1);
    localCapsExtension.setExt(str4);
    return localCapsExtension;
  }
}